#include "oplane.h"

OPlane::OPlane(QObject *parent) :
    OEntity(parent)
{
    m_xPos = m_zPos = 0;
    m_yPos = 1;  // TO_Y
    m_xUpPos = m_yUpPos = 0;
    m_zUpPos = 1; // UP_Z
}

float OPlane::xNormalPos() const {
    return m_xPos;
}

void OPlane::setXPos(float pos) {
    this->m_xPos = pos;
      //  updatePos();
}

float OPlane::yNormalPos() const {
    return m_yPos;
}

void OPlane::setYPos(float pos) {
    this->m_yPos = pos;
        //updatePos();
}

float OPlane::zNormalPos() const {
    return m_zPos;
}

void OPlane::setZPos(float pos) {
    this->m_zPos = pos;
        //updatePos();
}

float OPlane::xUpPos() const {
    return m_xUpPos;
}

void OPlane::setXUpPos(float pos) {
    this->m_xUpPos = pos;
}

float OPlane::yUpPos() const {
    return m_yUpPos;
}

void OPlane::setYUpPos(float pos) {
    this->m_yUpPos = pos;
}

float OPlane::zUpPos() const {
    return m_zUpPos;
}

void OPlane::setZUpPos(float pos) {
    this->m_zUpPos = pos;
}

void OPlane::updatePos() {

    //m_plane->redefine();
}

float OPlane::dist() const
{
    return m_dist;
}

void OPlane::setDist(float d)
{
    m_dist = d;
}

float OPlane::height() const
{
    return m_height;
}

float OPlane::width() const
{
    return m_width;
}

void OPlane::setWidth(float d)
{
    m_width = d;
}

void OPlane::setHeight(float d)
{
    m_height = d;
}
